package com.maizhe.dao;

import com.maizhe.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UserMapper {

    User findUserByName(@Param("loginName") String loginName);

    User findUser(User user);

    List<User> findAll(User user);

    Integer countAll(User user);

    int saveUser(User user);

    int remove(String id);

    //通过id获取对应的user
    User findById(String id);

    int editUser(User u);

    List<Map<String,Object>> findSalesAll();

    List<Map<String,Object>> findAllManager();
}